import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
plt.figure(figsize=(6.4,4.8),facecolor='white')
# x = np.arange(1,8)
# y = np.array([10,30,50,60,74,80,45])
x = np.arange(0,4*np.pi,0.1)
y1 = np.sin(x)
y2 = np.cos(x)
plt.title('zhexian',fontsize = 20)
plt.xlabel('x',fontsize = 15)
plt.ylabel('y',fontsize = 15)
plt.xlim(-2,15)
plt.ylim(-7,8)
# plt.xticks([1,2,3])
# plt.yticks([-2,1,2])
plt.grid(axis='both')
plt.plot(x,y1)
plt.plot(x,y2)
plt.savefig('C:/sin函数.png')
plt.show()